<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内边距</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            border: 1px solid red;
            /*给元素添加内边距,会影响宽高*/
            padding-top: 50px;
            padding-top: 50px;


        }

    </style>


</head>
<body>
<div>内边距</div>




</body>
</html>